//
//  AppDelegate.h
//  leo
//
//  Created by 常艳 on 15/8/24.
//  Copyright (c) 2015年 mdx. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <MAMapKit/MAMapKit.h>
#import <AMapSearchKit/AMapSearchKit.h>
#import "SendTableViewCell.h"
#import "ReceiveTableViewCell.h"
#import "RecordTaskTableViewCell.h"
#import "TaskTableViewCell.h"
#import "SocketTelecom.h"
#define TAG @"AppDelegate-----------------------"

@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (nonatomic, strong) NSMutableArray *safeDetailsDataArray;
@property (nonatomic, strong) NSMutableArray *alertDetailsDataArray;
@property (nonatomic, strong) NSMutableArray *silentDetailsDataArray;

//member array
@property (nonatomic, strong) NSMutableArray *ManagerDetailsDataArray;
@property (nonatomic, strong) NSMutableArray *ContactsDetailsDataArray;
@property (nonatomic, strong) NSMutableArray *SosContactsDetailsDataArray;
@property (nonatomic, strong) MAMapView *mapView;
@property (nonatomic, strong) AMapSearchAPI *search;
@property (strong, nonatomic) UIWindow *window;
@property (nonatomic,assign) BOOL location_sync;
//@property (nonatomic,assign) BOOL track_sync;
@property (nonatomic,assign) BOOL chat_sync;
@property (nonatomic,assign) BOOL growth_sync;
@property (nonatomic,assign) BOOL manager_sync;
@property (nonatomic,assign) BOOL isBLEUnderConnect;
@property (nonatomic,strong) NSString *iosdeviceToken;
@property(nonatomic,strong) NSString *iosToken;//ios设备唯一标识
//解决录音互斥问题
@property (nonatomic,weak) SendTableViewCell *sendCell;
@property (nonatomic,weak) ReceiveTableViewCell *receiveCell;
@property (nonatomic,weak) RecordTaskTableViewCell *recordTaskCell;
@property (nonatomic,weak) TaskTableViewCell *taskCell;
//解决聊天时间问题，5分钟内不显示
@property (nonatomic,assign) long lastTimeStamp;
@property (nonatomic,assign) int addWatchMethod;//添加手表的一种途径，0表示注册时添加，1表示选择手表界面添加

//解决副管理员权限问题
@property(nonatomic,assign) BOOL isAdmin;
@property (nonatomic,assign) BOOL islogin;
@property(nonatomic,assign) BOOL isResending;
@property(nonatomic,assign) BOOL isSyncingChat;
@property(nonatomic,strong) NSString *unbindViceAdminName;
@property(nonatomic,strong) NSString *bindViceAdminUid;
@property(nonatomic,assign) BOOL isReceiveBindRelationChange;
-(void)setNavProperty:(UINavigationController *)navigationController;

//解决请求未返回之前重复sync的问题
@property(nonatomic,assign) BOOL isSyncFinish;
-(void)sendMsg:(NSData *)msgData;
-(NSData *)getLinkMsg:(PushType)type;
-(void)connectToTcp;
-(void)disconnectToTcp;

//UI更改
@property (nonatomic, assign)BOOL isChange;
@end

